package model.util;

public class Point {
	public Float x;
	public Float y;

	public Point() {
		this.x = 0f;
		this.y = 0f;
	}

	public Point(float x, float y) {
		this.x = x;
		this.y = y;
	}

	public Float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public Float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof Point) {
			Point other = (Point) o;
			return x.equals(other.x) && y.equals(other.y);
		}
		return false;
	}

	@Override
	public String toString() {
		return "Point [x=" + x + ", y=" + y + "]";
	}

}
